package com.bianmaba.dc.bean;

public enum JobParameter {
    //必填参数
    TASK_TYPE("taskType", 0),
    PROJECT_ID("projectId", 1),
    TASK_ID("taskId", 3),
    EXECUTOR("executor", 5),

    //非必填参数
    TASK_INSTANCE_ID("taskInstanceId", 6),
    SCHEDULE_ID("scheduleId", 7),
    SCHEDULE_NAME("scheduleName", 8),
    COLLECTION_PARAMETERS("collectionParameters", 9),
    DESCRIPTION("description", 10),
    COLLECTION_PARAMETER_PARTS("collectionParameterParts", 11);
    // 成员变量
    private String name;
    private int index;

    // 构造方法
    JobParameter(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // get set 方法
    public String getName() {
        return name;
    }
}
